class Follow < ActiveRecord::Base

  belongs_to :idol,:foreign_key=>"idol_id",:class_name=>"User"
  
  belongs_to :fensi,:foreign_key=>"fensi_id",:class_name=>"User"

  def self.search(conditions, page, order)
    paginate :per_page => 10, :page => page,
      :conditions => conditions,
      :order => order
  end
  
end
